/* Hero Section Styles - Compact Side by Side Layout */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background: #f4f7fb;
    line-height: 1.4;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

/* Compact scroll optimization */
html {
    scroll-padding-top: 20px;
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Hero Section Bar - Compact Design */
.hero-section-bar {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #a8edea 100%);
    position: relative;
    overflow: hidden;
    margin: 15px;
    border-radius: 15px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.25);
    border: 1px solid rgba(255,255,255,0.2);
    animation: slideInFromBottom 0.8s ease-out;
    transition: transform 0.2s ease;
}

.hero-section-bar:hover {
    transform: translateY(-1px);
}

@keyframes slideInFromBottom {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-section-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255,255,255,0.08) 0%, transparent 40%),
        radial-gradient(circle at 80% 20%, rgba(255,255,255,0.05) 0%, transparent 40%),
        radial-gradient(circle at 40% 80%, rgba(255,255,255,0.06) 0%, transparent 40%);
    opacity: 0.8;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 10px;
    color: white;
    display: flex;
    align-items: center;
    gap: 15px;
    min-height: 250px;
    animation: fadeInContent 0.4s ease-out 0.1s both;
}

@keyframes fadeInContent {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

.hero-left {
    flex: 1;
    text-align: left;
    background: rgba(255,255,255,0.05);
    padding: 15px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(8px);
    animation: fadeIn 0.3s ease-out 0.2s both;
    transition: background 0.2s ease;
}

.hero-left:hover {
    background: rgba(255,255,255,0.08);
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

.hero-right {
    flex: 0 0 280px;
    text-align: center;
    background: rgba(255,255,255,0.08);
    padding: 15px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.15);
    backdrop-filter: blur(8px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    animation: fadeIn 0.3s ease-out 0.3s both;
    transition: background 0.2s ease;
}

.hero-right:hover {
    background: rgba(255,255,255,0.12);
}

/* PM Photo */
.pm-photo-container {
    position: relative;
    display: inline-block;
    margin-bottom: 20px;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.3));
}

.pm-photo {
    width: 180px;
    height: 220px;
    border-radius: 15px;
    border: 3px solid rgba(255,255,255,0.6);
    box-shadow: 
        0 15px 30px rgba(0,0,0,0.4),
        0 0 0 2px rgba(255,255,255,0.2),
        inset 0 0 15px rgba(255,255,255,0.1);
    object-fit: cover;
    transition: all 0.2s ease;
    background: linear-gradient(45deg, #667eea, #764ba2);
}

.pm-photo:hover {
    transform: scale(1.02) translateY(-2px);
    box-shadow: 
        0 20px 40px rgba(0,0,0,0.5),
        0 0 0 3px rgba(255,255,255,0.3),
        inset 0 0 20px rgba(255,255,255,0.15);
}

.pm-info {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    color: #333;
    padding: 12px 20px;
    border-radius: 20px;
    box-shadow: 
        0 10px 25px rgba(0,0,0,0.3),
        0 0 0 2px rgba(255,255,255,0.8);
    text-align: center;
    min-width: 180px;
    border: 2px solid rgba(255,255,255,0.9);
    backdrop-filter: blur(5px);
}

.pm-name {
    font-size: 16px;
    font-weight: bold;
    color: #1e3c72;
    margin-bottom: 3px;
}

.pm-title {
    font-size: 12px;
    color: #666;
    font-weight: 500;
}

/* Content Styles */
.hero-title {
    font-size: 2.3rem;
    font-weight: 800;
    margin-bottom: 8px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.4);
    background: linear-gradient(45deg, #ffd700, #ffed4e, #fff176);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
    animation: fadeIn 0.6s ease-out 0.8s both;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 15px;
    opacity: 0.95;
    line-height: 1.4;
    font-weight: 500;
    animation: fadeIn 0.6s ease-out 1s both;
}

.cast-notice {
    background: linear-gradient(45deg, #ff6b6b, #ff8e8e);
    padding: 10px 16px;
    border-radius: 12px;
    margin-bottom: 18px;
    text-align: center;
    font-weight: bold;
    font-size: 15px;
    border: 2px solid #fff;
    animation: pulse 2s infinite;
    box-shadow: 0 6px 18px rgba(255,107,107,0.4);
}

.registration-fee-notice {
    background: linear-gradient(45deg, #28a745, #34ce57);
    padding: 8px 14px;
    border-radius: 10px;
    margin-bottom: 18px;
    text-align: center;
    font-weight: 600;
    font-size: 14px;
    border: 2px solid #fff;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
    animation: glow 3s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
    }
    to {
        box-shadow: 0 5px 18px rgba(40, 167, 69, 0.4);
    }
}

/* Content Boxes */
.content-row {
    display: flex;
    gap: 15px;
    margin-bottom: 18px;
}

.content-box {
    flex: 1;
    background: rgba(255,255,255,0.12);
    padding: 12px;
    border-radius: 10px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.15);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    animation: fadeIn 0.5s ease-out 1.2s both;
    transition: background 0.2s ease;
}

.content-box:hover {
    background: rgba(255,255,255,0.16);
}

.content-title {
    font-size: 17px;
    font-weight: bold;
    color: #ffd700;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.content-text {
    font-size: 15px;
    line-height: 1.4;
    opacity: 0.95;
}

.subjects-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    margin-top: 8px;
}

.subject-item {
    font-size: 13px;
    padding: 5px 0;
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 500;
}

.duration-box {
    background: linear-gradient(45deg, rgba(255,215,0,0.25), rgba(255,235,59,0.2));
    padding: 12px;
    border-radius: 10px;
    margin-bottom: 18px;
    text-align: center;
    border: 2px solid rgba(255,215,0,0.4);
    box-shadow: 0 6px 18px rgba(255,215,0,0.2);
}

.duration-title {
    font-size: 17px;
    font-weight: bold;
    color: #ffd700;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.duration-text {
    font-size: 16px;
    font-weight: 600;
    opacity: 0.95;
}

/* Action Buttons */
.hero-actions {
    display: flex;
    gap: 12px;
    margin-top: 18px;
    flex-wrap: wrap;
}

.hero-btn {
    padding: 10px 16px;
    border: none;
    border-radius: 20px;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex: 1;
    justify-content: center;
    min-width: 130px;
}

.hero-btn-primary {
    background: linear-gradient(45deg, #ff6b6b, #ff8e8e);
    color: white;
    box-shadow: 0 6px 18px rgba(255,107,107,0.4);
}

.hero-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255,107,107,0.5);
}

.hero-btn-secondary {
    background: rgba(255,255,255,0.15);
    color: white;
    border: 2px solid rgba(255,255,255,0.4);
    backdrop-filter: blur(10px);
}

.hero-btn-secondary:hover {
    background: rgba(255,255,255,0.25);
    border-color: rgba(255,255,255,0.6);
    transform: translateY(-2px);
}

/* Institute Info */
.institute-info {
    margin-top: 15px;
    background: rgba(255,255,255,0.08);
    padding: 10px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
}

.institute-name {
    color: #ffd700;
    font-weight: bold;
    margin-bottom: 5px;
    font-size: 16px;
}

.institute-address {
    font-size: 14px;
    margin-bottom: 4px;
    opacity: 0.95;
}

.institute-registration {
    font-size: 12px;
    margin-bottom: 6px;
    opacity: 0.9;
}

.certifications {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 8px;
}

.certification-badge {
    background: rgba(34,193,195,0.25);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 500;
    border: 1px solid rgba(34,193,195,0.4);
}

.website-link {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(255,255,255,0.15);
    font-size: 11px;
}

.website-link a {
    color: #ffd700;
    text-decoration: none;
    font-weight: 500;
}

/* Animations */
@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.03); }
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(5deg); }
}

/* Floating Elements */
.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.floating-element {
    position: absolute;
    color: rgba(255,255,255,0.06);
    font-size: 1.2rem;
    animation: floatSimple 8s ease-in-out infinite;
}

@keyframes floatSimple {
    0%, 100% { 
        transform: translateY(0px); 
    }
    50% { 
        transform: translateY(-10px); 
    }
}

.floating-element:nth-child(1) {
    top: 15%;
    left: 8%;
    animation-delay: 0s;
}

.floating-element:nth-child(2) {
    top: 25%;
    right: 12%;
    animation-delay: 2s;
}

.floating-element:nth-child(3) {
    bottom: 20%;
    left: 15%;
    animation-delay: 4s;
}

.floating-element:nth-child(4) {
    bottom: 15%;
    right: 8%;
    animation-delay: 1s;
}

/* Mobile Responsive - Compact */
@media (max-width: 768px) {
    .hero-section-bar {
        margin: 8px;
        border-radius: 10px;
    }
    
    .hero-content {
        flex-direction: column;
        gap: 12px;
        padding: 12px;
        text-align: center;
        min-height: auto;
    }
    
    .hero-left {
        text-align: center;
        padding: 10px;
    }
    
    .hero-right {
        flex: none;
        order: -1;
        padding: 8px;
    }
    
    .hero-title {
        font-size: 1.6rem;
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
    }
    
    .pm-photo {
        width: 160px;
        height: 190px;
    }
    
    .content-row {
        flex-direction: column;
        gap: 6px;
    }
    
    .subjects-list {
        grid-template-columns: 1fr;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-btn {
        width: 100%;
        max-width: 250px;
    }
    
    .floating-element {
        display: none;
    }
    
    .certifications {
        justify-content: center;
    }
    
    .cast-notice {
        font-size: 13px;
        padding: 8px 12px;
        margin-bottom: 15px;
    }
    
    .registration-fee-notice {
        font-size: 12px;
        padding: 6px 10px;
        margin-bottom: 15px;
    }
}

@media (max-width: 480px) {
    .hero-content {
        padding: 10px;
    }
    
    .hero-title {
        font-size: 1.3rem;
    }
    
    .pm-photo {
        width: 120px;
        height: 150px;
    }
    
    .content-box {
        padding: 10px;
    }
    
    .hero-left, .hero-right {
        padding: 8px;
    }
}

/* Enhanced Form Section Styles - Optimized */
.form-section {
    background: #f8f9fa;
    padding: 40px 20px;
    margin: 20px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
    scroll-margin-top: 20px;
}

.form-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #667eea, #764ba2, #a8edea);
    border-radius: 20px 20px 0 0;
}

.form-container {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    position: relative;
    border: 1px solid rgba(102, 126, 234, 0.1);
    animation: fadeInUp 0.5s ease-out;
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e9ecef;
    position: relative;
}

.form-header::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 2px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 2px;
}

.form-title {
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 2.1rem;
    margin-bottom: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    animation: slideInTitle 0.6s ease-out 0.2s both;
}

@keyframes slideInTitle {
    0% {
        opacity: 0;
        transform: translateY(-10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-subtitle {
    color: #6c757d;
    font-size: 1.1rem;
    margin: 0;
    font-weight: 400;
    line-height: 1.5;
    animation: slideInTitle 0.6s ease-out 0.3s both;
}

.form-section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #495057;
    font-size: 1.3rem;
    font-weight: 700;
    margin: 35px 0 20px 0;
    padding: 15px 0 12px 0;
    border-bottom: 2px solid #dee2e6;
    position: relative;
}

.form-section-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.form-section-title span:first-child {
    font-size: 1.4rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.registration-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: start;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
}

.form-group label {
    color: #495057;
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.2s ease;
    background: white;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.12);
    transform: translateY(-1px);
    background: #fafbfc;
}

.form-group input:valid:not(:placeholder-shown),
.form-group select:valid,
.form-group textarea:valid:not(:placeholder-shown) {
    border-color: #28a745;
    background: linear-gradient(135deg, #f8fff8, #ffffff);
}

.form-group input:invalid:not(:focus):not(:placeholder-shown),
.form-group select:invalid:not(:focus),
.form-group textarea:invalid:not(:focus):not(:placeholder-shown) {
    border-color: #dc3545;
    background: linear-gradient(135deg, #fff5f5, #ffffff);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
    font-family: inherit;
    line-height: 1.5;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 20px 0;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
    border-radius: 12px;
    border: 2px solid #e9ecef;
}

.checkbox-group input[type="checkbox"] {
    margin-top: 4px;
    transform: scale(1.3);
    accent-color: #667eea;
    cursor: pointer;
}

.checkbox-group label {
    flex: 1;
    color: #495057;
    line-height: 1.6;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
}

.form-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
    padding-top: 25px;
    border-top: 2px solid #e9ecef;
    position: relative;
}

.form-actions::before {
    content: '';
    position: absolute;
    top: -3px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 2px;
}

.btn-primary,
.btn-secondary {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 30px;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    min-width: 180px;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.12);
    text-transform: none;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: 2px solid transparent;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
}

.btn-secondary {
    background: linear-gradient(135deg, #6c757d, #5a6268);
    color: white;
    border: 2px solid transparent;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #5a6268, #495057);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(108, 117, 125, 0.3);
}

/* Enhanced mobile responsiveness - Optimized */
@media (max-width: 768px) {
    .form-section {
        margin: 12px;
        padding: 25px 15px;
        border-radius: 12px;
    }
    
    .form-container {
        padding: 25px 20px;
        border-radius: 12px;
    }
    
    .form-title {
        font-size: 1.7rem;
        flex-direction: column;
        gap: 6px;
    }
    
    .form-subtitle {
        font-size: 1rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 18px;
    }
    
    .form-actions {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
        max-width: 280px;
        padding: 16px 25px;
        font-size: 1rem;
    }
    
    .form-section-title {
        font-size: 1.1rem;
        margin: 25px 0 15px 0;
    }
}

@media (max-width: 480px) {
    .form-section {
        margin: 8px;
        padding: 20px 12px;
    }
    
    .form-container {
        padding: 20px 15px;
    }
    
    .form-title {
        font-size: 1.5rem;
    }
    
    .form-subtitle {
        font-size: 0.95rem;
    }
    
    .form-section-title {
        font-size: 1rem;
        gap: 8px;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 12px 14px;
        font-size: 0.95rem;
    }
    
    .checkbox-group {
        padding: 12px;
        gap: 8px;
    }
    
    .btn-primary,
    .btn-secondary {
        padding: 14px 20px;
        font-size: 0.95rem;
    }
}

/* Loading state enhancements */
.form-loading .btn-primary {
    opacity: 0.8;
    cursor: not-allowed;
    pointer-events: none;
    background: linear-gradient(135deg, #9ea8f0, #9c89c7);
}

.form-loading .btn-primary::after {
    content: '';
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 8px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Field error styling improvements */
.field-error {
    color: #dc3545 !important;
    font-size: 0.85rem !important;
    margin-top: 5px !important;
    font-weight: 500 !important;
    display: flex;
    align-items: center;
    gap: 5px;
}

.field-error::before {
    content: '⚠️';
    font-size: 0.8rem;
}
